setActionProvider

Sets the ActionProvider responsible for creating an action view if the item is placed on the action bar. The provider also provides a default action invoked if the item is placed in the overflow menu.

Note: Setting an action provider overrides the action view set via setActionView.

Return

This Item so additional setters can be called.

Parameters

item

item to change

provider

The action provider.

See also